package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerResourceChangeReasonItem implements IQLResponse
{
    /// <summary>
    /// 物品名称
    /// </summary>
    public String Name;

    /// <summary>
    /// 该物品的变化原因，原因可能会有多个，用半角逗号隔开
    /// </summary>
    public String Reasons;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj;
        if (t.has("name"))
            Name = t.getString("name");
        if (t.has("reasons"))
            Reasons = t.getString("reasons");
    }
}
